package server.core;

import java.net.Socket;

public class TryPOrts {
	public static void main(String[] ds) {
		System.out.println("start");
		for (int i = 1; i < 1024; i++) {
			try {
				Socket s = new Socket("localhost", i);
				System.out.println("este un host la portu " + i);
			} catch (Exception e) {
System.out.print(i);
			}
		}
		System.out.println("end");
	}
}
